/**
 *
 */
package soa.security.rs;

import soa.security.domain.Organization;
import soa.security.exception.OrganizationException;

import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;

/**
 * @author CreGu
 */
@Path("/OrganizationService")
@Produces({ MediaType.APPLICATION_XML, "application/json;charset=UTF-8"})
public interface OrganizationService {
    /**
     * 获取指定机构信息
     *
     * @param organizationId
     * @return
     * @throws OrganizationException
     */
    @GET
    @Path("getOrganization")
    Organization getOrganization(@QueryParam("organizationId") String organizationId)
            throws OrganizationException;

    /**
     * 获取所有机构
     * @return String
     * @throws OrganizationException
     * @author CY
     */
    @GET
    @Path("allOrganization")
    public String allOrganization() throws OrganizationException;

}
